package com.eunion.web.character.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.eunion.web.character.entity.CharacterResult;
import com.eunion.web.character.service.CharacterResultService;
import com.eunion.web.common.base.BaseService;
import com.eunion.web.common.base.BaseTableCommonController;
/**
 * @author changzuzhe
 *
 */
@Controller
@RequestMapping(value = "/api/characterResult")
public class CharacterResultController extends BaseTableCommonController<CharacterResult, Integer> {
	@Autowired
	private CharacterResultService characterResultService;
	@Autowired
    private ApplicationContext applicationContext;
	
	@Override
	protected BaseService<CharacterResult, Integer> getBaseService() {
		// TODO Auto-generated method stub
		return characterResultService;
	}
	
	/**
	 * 进入性格管理页面
	 * @return
	 */
	@RequestMapping("/index")
	public String index() {
		return getUrlBase();
	}

	@Override
	protected String getUrlBase() {
		return "admin/character/characterresult";
	}
}
